Public trips - Rename fields in host request#7740
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @nabramow's task in 2m 3s —— View job Migration Safety Review Complete
Result: SAFE - The migration |
Migration ReviewOne of our most common issues is migrations that don't work with existing data in production. This is very hard to catch with CI, so we have this bot to check for potential problems. Overall Risk: SAFE Files Reviewed
FindingsNo issues found. All operations are metadata-only in PostgreSQL:
The downgrade function properly reverses all renames in the correct reverse order. SummaryThis is a safe, metadata-only migration. All 11 column renames, 4 index renames, and 2 FK constraint renames are correctly mapped and match the model changes in |
|
Claude finished @nabramow's task in 1m 49s —— View job Migration Safety Review Complete
Result: SAFE - The migration |
aapeliv
left a comment
There was a problem hiding this comment.
some comments. let's just change the column names in the host request table in this PR
app/backend/src/couchers/migrations/versions/0140_rename_host_request_user_columns_v2.py
Outdated
Show resolved
Hide resolved
|
|
||
|
|
||
| def create_test_host_request_with_moderation(surfer_token, host_user_id): | ||
| def create_test_host_request_with_moderation(surfer_token, recipient_user_id): |
… na/backend/naming-host-req
|
Claude finished @nabramow's task in 1m 36s —— View job Migration Safety Review Complete
Result: SAFE - The migration |
|
Claude finished @nabramow's task in 1m 40s —— View job Migration Safety Review Complete
Result: SAFE - The migration |
|
Claude finished @nabramow's task in 1m 32s —— View job Migration Safety Review Complete
Result: SAFE - The migration |
Describe briefly what this PR is doing and why.
Closes #7739
To prepare for public trips, we will first rename surfer_user_id and host_user_id to recipient and initiator. This is because public trips will allow us going both directions so the surfer initiates normally but host initiates with public trips.
Testing
Explain how you tested this PR and give clear steps so the reviewer can replicate.
Backend checklist
developif necessary for linear migration historyFor maintainers